package com.itany.cloud.global;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.itany.cloud.util.ResponseResult;

public class GlobalSentinelException {

    // 全局异常方法必须使用static修饰
    public static ResponseResult handlerException(BlockException e){
        return ResponseResult.fail("全局Sentinel异常,异常为:"+e);
    }

}
